<?php

/**
 * description
 */
class BackendHomepageImageFormFilter extends HomepageImageFormFilter
{
  /**
   * description
   */
  public function configure()
  {
    $this->widgetSchema['contestant']    = new sfWidgetFormInputText();
    $this->validatorSchema['contestant'] = new sfValidatorPass();
  }

	public function addContestantColumnQuery($query, $field, $values)
	{
		$query->addWhere('c.name like ?', "%$values%");
	}
}
